Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@arcblock/did
Advanced tools
Javascript library to manipulate ArcBlock DID: https://github.com/ArcBlock/abt-did-spec
yarn add @ocap/mcrypto @arcblock/did
const Mcrypto = require('@ocap/mcrypto');
const { fromSecretKey, fromPublicKey, fromAppDID } = require('@arcblock/did');
const { types } = Mcrypto;
const keyPair = Mcrypto.Signer.Ed25519.genKeyPair();
// Gen DID from secretKey
const address = fromSecretKey(keyPair.secretKey, {
role: types.RoleType.ROLE_APPLICATION,
pk: types.KeyType.ED25519,
hash: types.HashType.SHA3,
});
console.log(`abt:did:${address}`);
// Gen DID from publicKey
const address = fromPublicKey(keyPair.publicKey, {
role: types.RoleType.ROLE_APPLICATION,
pk: types.KeyType.ED25519,
hash: types.HashType.SHA3,
});
console.log(`abt:did:${address}`);
// Gen DID from appId
const seed =
'0xa0c42a9c3ac6abf2ba6a9946ae83af18f51bf1c9fa7dacc4c92513cc4dd015834341c775dcd4c0fac73547c5662d81a9e9361a0aac604a73a321bd9103bce8af';
const appDID = 'zNKtCNqYWLYWYW3gWRA1vnRykfCBZYHZvzKr';
const userDID = fromAppDID(appDID, keyPair.publicKey, {
role: types.RoleType.ROLE_APPLICATION,
pk: types.KeyType.ED25519,
hash: types.HashType.SHA3,
});
console.log(`abt:did:${userDID}`);
For full documentation, checkout https://asset-chain.netlify.com
FAQs
Javascript lib to work with ArcBlock DID
The npm package @arcblock/did receives a total of 4,155 weekly downloads. As such, @arcblock/did popularity was classified as popular.
We found that @arcblock/did demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.